adding if condition for image_list
Bootstrapped