build_payload now has defaults for max_width and max_height
adding in initial tests