fixes 'can't convert .jpg...' exception
fixes 'can't convert .jpg...' exception
Revert "fixes 'can't convert .jpg...' exception"

This reverts commit 0eca0f35640fd79795b7d4dc95732a317ac17e22.