Change images size and extension