Preparatory code for deploying images