explain how image file is built