image format modification to p tags