use document ready instead of onload to react to image clicks more quickly