fixed compile image bugs