Cleanup code and remove jQuery image preload plugin