Adding assertion for pixels