Added check that there is an image first for command L