Fixed image displaying bugs.