cleaned up get_images method
cleaned up get_images method