Move width and height info to photoInfo object instead of file object