updated door functions so random image is selected