Image switching fixed - put loading of image outside of conditional.