Transform image