in reply to dynamic methods with variables

You're mixing metaphors ;-)

Try:

my $parameters = {colorspace=>'gray', compression=>'none'};
Seems you're mixing up qw() with the anonymous hash reference constructor {}.

Liz