2nd attempt at optimising image