Change image switch logic to ImageManager Class.