You can easily fix that edge problem in Photoshop. Make a mask first and then go to the “Properties dialog box menu.” Here you will find the slider "smooth.” You can smoothen the rough edges of the pictures through adjustments from that menu.