added 'jpeg' type to removeRasterImages.