Revised the clear method to reset the image data. Fixed the merge to
take all non transparent data.