jpeg background support and scaling