apply condition on image for module 3