Deleted image reverts to style="width:0%;" in source rather than being removed

Hi,

In my testing of sitecake I noticed that after changing an image a number of times it began to generate 404s - an inspection of the code showed that images I had removed remained in the source code with a
style=“width:0%;” while the image had been removed from the sitecake-temp folder generating a 404.

 <div class="sc-content-logo page-scroll">
                	<img alt="" style="width:0%;" src="sitecake-temp/r5943a8d56db5e/draft/images/anemone1a1600-sc5943b795c7ed8-320.jpg" srcset="sitecake-temp/r5943a8d56db5e/draft/images/anemone1a1600-sc5943b795c7ed8-1280.jpg 1280w,sitecake-temp/r5943a8d56db5e/draft/images/anemone1a1600-sc5943b795c7ed8-960.jpg 960w,sitecake-temp/r5943a8d56db5e/draft/images/anemone1a1600-sc5943b795c7ed8-640.jpg 640w,sitecake-temp/r5943a8d56db5e/draft/images/anemone1a1600-sc5943b795c7ed8-320.jpg 320w"/>
                	<img alt="" style="width:0%;" src="images/serious-coffe-red-2lines-sc59479ff4ca9a2-235.png" srcset="images/serious-coffe-red-2lines-sc59479ff4ca9a2-235.png 235w"/>
                	<img alt="" style="width:0%;" src="images/serious-coffe-red-2lines-sc5947a4a00c6a5-235.png" srcset="images/serious-coffe-red-2lines-sc5947a4a00c6a5-235.png 235w"/>
                	<img alt="" style="width:100%;" src="images/tallseious-sc5947ae02d5095-320.png" srcset="images/tallseious-sc5947ae02d5095-500.png 500w,images/tallseious-sc5947ae02d5095-320.png 320w"/>
                </div>

Is there anyway to get it to delete from source code as my client will updating images weekly please?

<div class="intro-text sc-content">
        	<img alt="" style="width:100%;" src="images/header-1897-597-sc5948d47008b69-1280.jpg" srcset="images/header-1897-597-sc5948d47008b69-1280.jpg 1280w,images/header-1897-597-sc5948d47008b69-960.jpg 960w,images/header-1897-597-sc5948d47008b69-640.jpg 640w,images/header-1897-597-sc5948d47008b69-320.jpg 320w"/>
        	<img alt="" style="width:100%;" src="images/header-1897-597-sc5948d42fe2355-1280.jpg" srcset="images/header-1897-597-sc5948d42fe2355-1280.jpg 1280w,images/header-1897-597-sc5948d42fe2355-960.jpg 960w,images/header-1897-597-sc5948d42fe2355-640.jpg 640w,images/header-1897-597-sc5948d42fe2355-320.jpg 320w"/>
        	<p class="intro-lead-in">Is A Different Colour needed</p>
        	<p class="intro-lead-in">Ethiopean Chocolate &amp; Ghananian Chocolate </p>
        	<p class="intro-lead-in"></p>
        </div>`Preformatted text`

Just worked out how to get the code into my question

indent preformatted text by 4 spaces

Hi, what do you mean by this. What are exact steps that you did to accomplish image not to be removed?

Hi,

I’m sorry don’t recall the exact steps as it I was just trying to change the image and it was the first time I’d test driven the editoring capacity and I didn’t check the error logs until more than 24 hours later. Since recieveing your reply I tried to reproduce the error. I’ve not been able to reproduce the error on pages I have hand coded rather than using the template which I had the problem with so I’m quite sure what I did, sorry.