fix arrow buttons

wait for images to load before building buttons