seek image file before open it with PIL