fix error attribute error in get_image_info