unloaded images have no height or width properties
remove unecessary semicolon
don't allow implicit type conversion
fix missing semicolon