fixed codes on photo change