add main function and a background image