not_if is not nested properly for image upload

`Cannot find a resource for not_if on ubuntu version 12.04`