working version for oblique images