Fix error on fill thumbnail when homothetic