Changed all System.outs, System.errs and e.printstacktraces to Log.*
Changed the way out of memory errors are handled. Now we first try to lower bytes per pixel size, then change iScale.
Removed dead and commented code.