MB-19
modify structure of is_valid_image api