working towards auto crop