When doing a graphic logo (picture logo) i have found if you get the size right but still gets an error ,you will find that the picture is too close to the edge.
The thermal printer can only print so far to the edge so making the picture a bit smaller, not the outside image but the picture inside so there is a gap things will work fine.