Created a small test with writeImageWithOffset