Preparations for drawing images