Added horizontal flipping when drawing images

Added horizontal flipping to the drawImage function of the Layer class
and added a hFlip property to the AnimatedSprite class which will
utilise the new flipping functionality.