Fixing of uploading images error.