check original format for jpg -> png conversions