fixed bugs in image loading