fixed image type bug