Build image first