Fixed some image bugs