Deal with empty image files