adding error reporting because image upload not working on openshift