Clean up code in class Jpeg and Image

Registered by quirxi

The code in the classes Jpeg and Image has to cleaned up:
* Convert C-Style code in C++ Style
* Get rid of unnecessary casts from float to int to unsigned int to unsigned char etc.
* Throw exceptions instead of giving out error messages to stderr
The problem ist probably that the code has to be well understood so that it can be cleaned up properly!

Blueprint information

Status:
Not started
Approver:
quirxi
Priority:
Medium
Drafter:
quirxi
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.