Saving Images to Db- Bug fixing