update mergeBitmaps method to get correct size of image