Fixed cheking photo's size on upload