added crop and scaling conditions

constrained width not height, constrained height not width, no
constraints, both contstraints
removed old vars and functions
build assets