maybe got image transformation working