Interesintg question, did not work on that.
But I think you need to have a different code for that. Need to rotate the base and top sprites by 45degree, and you need to connect the certain poins by the side drawing. Probably different ones than originally.
It is a theory, but I would make some trials like that.