Added check for libimage attr in image block

Signed-off-by: Tom Wright <tom@inflatablecookie.com>