Implemented image editor; Calculated width, height, margin for the resultant edited image; Implemented photo-undo