Warnings if imaging library has wrong UCS support.

Fix for #297.

Please note that this fix raises the original exception when an unknown error occurs. An alternative is to also call warnings.warn(str(v)) for unknown errors.