Sounds like an integers issue. Ensure your image dimensions are in whole pixel numbers, not containing decimal dimensions. But as Gary says please post an example.