Implemented Image handling functionality

Currently tested with 8 mega pixel images