Merge
Fixed return value
Fixed computation of the tile coordinates
Fixed crop values
Removed useless variable