merges four jpegs into one