Adding some fixes for Image_lib library.