preperation for images