Implement better also resize for image in block.