files extensions were wrong for images