solve_image_allocate