updated image converter script