passing image objects