preparing for image