I have to make a collage of a given picture and fit the collage in dimensions given(collageDimensions*tileDimensions). I have been able to scale the image down to the desired si