Plugin resize: Only apply image styles if image is present

Thanks @dhunink for the suggestion.

Closes #152.