use png instead of dev.copy

dev.copy behaves badly with legends