Content-aware image enhancement