Fix minor bug on plugin
Manage properly preview when original layer size is lower than preview size. Remove print()
(cherry picked from commit c8414cf88cc375c724ecd2cb65ff37d7f5587fc3)