prepare for image translation