Fixes broken image bug