public static function getPlacementCoordinates(
        $resourceSize = [],
        $size = [],
        $place_constant = Imanee::IM_POS_TOP_LEFT
    ) {
        $x = 0;
        $y = 0;

        switch ($place_constant) {

            case Imanee::IM_POS_TOP_CENTER:
                $x = ($size['width'] / 2) - ($resourceSize['width'] / 2);
                break;

            case Imanee::IM_POS_TOP_RIGHT:
                $x = ($size['width']) - ($resourceSize['width']);
                break;

            case Imanee::IM_POS_MID_LEFT:
                $y = ($size['height'] / 2) - ($resourceSize['height'] / 2);
                break;

            case Imanee::IM_POS_MID_CENTER:
                $x = ($size['width'] / 2) - ($resourceSize['width'] / 2);
                $y = ($size['height'] / 2) - ($resourceSize['height'] / 2);
                break;

            case Imanee::IM_POS_MID_RIGHT:
                $x = ($size['width']) - ($resourceSize['width']);
                $y = ($size['height'] / 2) - ($resourceSize['height'] / 2);
                break;

            case Imanee::IM_POS_BOTTOM_LEFT:
                $y = ($size['height']) - ($resourceSize['height']);
                break;

            case Imanee::IM_POS_BOTTOM_CENTER:
                $x = ($size['width'] / 2) - ($resourceSize['width'] / 2);
                $y = ($size['height']) - ($resourceSize['height']);
                break;

            case Imanee::IM_POS_BOTTOM_RIGHT:
                $x = ($size['width']) - ($resourceSize['width']);
                $y = ($size['height']) - ($resourceSize['height']);
                break;
        }

        return [
            (int) floor($x),
            (int) floor($y)
        ];
    }