/*
 * Get an integer value attached to an Imlib2::Image.
 * 
 * Examples:
 *   qual = image.get_attached_value('quality')
 *   qual = image['quality']
 */
static VALUE image_get_attach_val(VALUE self, VALUE key_o) {