private function timber_should_resize( $attachment_parent_id, $img_size ) {
		/**
		 * Normally we don’t have a post type associated with the attachment
		 *
		 * We use an empty array to tell the function that there is no post type
		 * associated with the attachment.
		 */
		$attachment_post_type = array( '' );

		// Check if image is attached to a post and sort out post type
		if ( 0 !== $attachment_parent_id ) {
			$parent               = get_post( $attachment_parent_id );
			$attachment_post_type = array( $parent->post_type );
		}

		return self::is_size_for_post_type( $img_size, $attachment_post_type );
	}