Fix the save() and rotate() function

rotate():
Issue of transparency in PNG, to rotate the image;

save():
Added the return's to use with PHP Frameworks.
If it returns false, stop insertion. If it returns true, perform the insertion