passing image data