fixed undeleted image size variable in main - hazheng