Fixes a crash dealing with image fields