Resizes a picture without losing detail