create image block class