Added new methods to the png and gif image class and split them off into their own files.