Image dimensions, writing to db ocr result