created Settings object
Fixed a bug where images that did not where paste at position 0,0
replaced FILE* with ofstream