rescale

fun rescale(bitmap: Bitmap, targetSize: Int): Bitmap

Rescales a bitmap to the specified targetSize and returns it