remove reference to image
remove unused function call
fix constant name
remove debugging statement
fix whitespace