Deleted some unused lines
Updated Image class