Change way to store images on AWS or local depending of execution mode.