fix picture id generator