fixes with dynamic upload of image