fix for choosing main photo