Image Enhancement via Deep Spatial and Temporal Networks