fixing image_type parameter (dash not accepted)