Modified crop to accept rect and crop appropriately. Will also resize.