fixed some image bugs