Fixed image disappearing bugs