made blend picture function dynamic