delete unused js
create function to preload images for canvas