fix arrow  buttons

wait for images to load before creating arrow buttons