Resize if larger than 500x375, combine resize and extent