clearing 'onload' variable before each lens is loaded to prevent carry-over