fixing overflow, and removing useless image