made sure picture resizes when stored in dbase