loader: add pause() and resume(), that can be used to temporary stop threads and pull in the clock. Also, make the loading_image and error_image customizable to the user.