fixed image insertion