Writes tests for _formatImages and displays debug values