cache jquery elemnts to make opening image faster