[WIP] Use last created build to determine status image

Don't merge this yet.