fix optimize images