fixed issue with upside down image