Fix MissingRequiredValidatorError when attaching image

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>