A resampled image will now return the correct reference.
Merge pull request #5 from NGlasl/master

Corrected an issue where a resampled image would return the original image reference.