added image optimisations