last bugfix for image uploading on remote server via https