fixed image bugs