move imageLoad code to Block 'class'