<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_scalexy(self, ims_width, ims_height):
 """Returns scale_x, scale_y for bitmap display"""


        # Get cell attributes
        cell_attributes = self.code_array.cell_attributes[self.key]
        angle = cell_attributes["angle"]

        if abs(angle) == 90:
            scale_x = self.rect[3] / float(ims_width)
            scale_y = self.rect[2] / float(ims_height)

        else:
            # Normal case
            scale_x = self.rect[2] / float(ims_width)
            scale_y = self.rect[3] / float(ims_height)

        return scale_x, scale_y