init for images