fixed unsafe warning messages for image attribute