rewriting images part 2