Image, Flash: Make sure that internal image reference is JPEG, before doing JPEG operations on it.