cropAndThumb bug fix