Setting composite picture to fit in the frame