Dynamically assign resource threshold image size.