Changed order for altering image