Image Upload directive adjusted the image height and cleaned up code