Saving image id if exists

fix for https://github.com/CODeRUS/mitakuuluu2/issues/194