fix ifdef syntax error if WEBP is not available - closes #356