Fixes broken main image update after upload of new image