I thought the image would get saved with permissions of the folder it is getting saved to however this was not the case. Adding the user and permissions to the folders containing the solution that uploads the files files solved the issue.
Thank you for your help.