Implemented checks on available memory and image pixelbits to diminish the likelyhood of OutOfMemory errors.
Removed unused class