First major commit

Some basic things got done, mainly concerning image storage and
manipulation, still lot to do with them though.